package com.xcdh.trading.controller;

import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A;
import com.xcdh.commons.controller.BaseController;
import com.xcdh.domain.vo.R;
import com.xcdh.trading.entity.GpHistoryName;
import com.xcdh.trading.service.GpHistoryNameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/gpHistoryName")
public class GpHistoryNameController extends BaseController<GpHistoryName, GpHistoryNameService> {
    @Autowired
    private GpHistoryNameService gpHistoryNameService ;

    @PostMapping("/syncGpHistoryName/{tradeDate}")
    public R syncGpHistoryName(@PathVariable String tradeDate){
        gpHistoryNameService.syncGpHistoryName();
        return R.ok() ;
    }

}
